﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccessLayer;

namespace BusinessLogicLayer
{
    public class ViewRequisitionHistoryControl
    {
        ReqHistoryDAL rhd = new ReqHistoryDAL();

        public object checkingHeadOrNot(String userName) {
            return rhd.checkingHeadOrNot(userName);
        }

        public List<Requisition> getAllRequisitionByDept(String userName) {
            return rhd.getAllRequisitionByDept(userName);
        }

        public List<object> getAllReqByIndividualEmpWithDate(string userName, DateTime fromDate, DateTime toDate)
        {
            return rhd.getAllReqByIndividualEmpWithDate(userName, fromDate, toDate);
        }

        public List<object> getIndividualReqByHead(int eid)
        {
            return rhd.getIndividualReqByHead(eid);
        }

        public List<Requisition> getAllReqByDate(string userName, DateTime fromDate, DateTime toDate)
        {
            return rhd.getAllReqByDate(userName, fromDate, toDate);
        }

        public List<Requisition> getAllRequisitionByEmpId(int eid, DateTime fromDate, DateTime toDate)
        {
            return rhd.getAllRequisitionByEmpId(eid, fromDate, toDate);
        }

        public List<Employee> getEmployeeListByDepID(String userName)
        {
            return rhd.getEmployeeListByDepID(userName);
        }

        public List<object> getReqDetailOneByReqID(int reqID) {
            return rhd.getReqDetailOneByReqID(reqID);
        }

        public void deleteOneRequisition(int i)
        {
            rhd.deleteOneRequisition(i);
        }

        public bool getRequisitionByStatus(int i)
        {
            return rhd.getRequisitionByStatus(i);
        }
    }
}
